package com.hnqcgc.dllShopping.Daoo;

import com.hnqcgc.dllShopping.vo.TUser;

import java.sql.SQLException;
import java.util.List;

public interface IUserDao {

    boolean insertUser(IUser iUser) throws SQLException;

    boolean deleteById(String tuID) throws SQLException;

    boolean updateById(IUser IUser) throws SQLException;

    //查昵称是否存在
    boolean queryById(String tuId) throws SQLException;

    //根据真实姓名查询
    List<TUser> queryByName(String name) throws SQLException;

    //登录
    boolean login(String tuId, String tuPassWord) throws SQLException;
}